package com.kaixin001.tk.datatype;

import org.apache.commons.httpclient.NameValuePair;

public class HouseMaster {

	private NameValuePair nameAndUid = null;
	
	private CommonEnums.Sex sex = CommonEnums.Sex.Unkonwn;  // 0 is girl, 1 is boy 	
	 
	private CommonEnums.Status status = CommonEnums.Status.Unkonwn;
	
	private HouseInfo houseInfo = null;

	/**
	 * @return the nameAndUid
	 */
	public NameValuePair getNameAndUid() {
		return nameAndUid;
	}

	/**
	 * @param nameAndUid the nameAndUid to set
	 */
	public void setNameAndUid(NameValuePair nameAndUid) {
		this.nameAndUid = nameAndUid;
	}

	/**
	 * @return the sex
	 */
	public CommonEnums.Sex getSex() {
		return sex;
	}

	/**
	 * @param sex the sex to set
	 */
	public void setSex(CommonEnums.Sex sex) {
		this.sex = sex;
	}

	/**
	 * @return the status
	 */
	public CommonEnums.Status getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(CommonEnums.Status status) {
		this.status = status;
	}
	 
	
	public String toString()
	{
		StringBuffer stb = new StringBuffer();
		stb.append(nameAndUid.toString()).append("\t");
		stb.append(status.toString()).append("\t");
		stb.append(sex.toString()).append("\n");
		stb.append(houseInfo);
		return stb.toString();
	}

	/**
	 * @return the houseInfo
	 */
	public HouseInfo getHouseInfo() {
		return houseInfo;
	}

	/**
	 * @param houseInfo the houseInfo to set
	 */
	public void setHouseInfo(HouseInfo houseInfo) {
		this.houseInfo = houseInfo;
	}

	
	
}
